FROM java:8
MAINTAINER wangjinkui

#挂载的路径
VOLUME /tmp

#将jar打入镜像之中
ADD xxl-job-admin-*.jar /app.jar
#设置时区
ENV TZ=Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
#容器向外暴露的端口
EXPOSE 8898

#入口命令，执行jar
ENTRYPOINT ["java","-Xms512M","-Xmx512M","-Xss1024K","-jar","/app.jar"]
